package com.question_barrier.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 问题状态表实体
 */
@Data
@Entity
@Table(name = "answer_state")
public class AnswerState {
    @Id
    private long id;
    @Column(name = "open_id")
    private String openId;
    @Column(name = "question_id")
    private String questionId;
    @Column(name = "state")
    private byte state;
    @Column(name = "create_at")
    private Date createAt;
    @Column(name = "create_by")
    private String createBy;
    @Column(name = "update_at")
    private Date updateAt;
    @Column(name = "update_by")
    private String updateBy;
    @Column(name = "is_del")
    private byte isDel;

    public AnswerState(){
    }

    public AnswerState(long id, String openId, String questionId, byte state, Date createAt, String createBy, Date updateAt, String updateBy, byte isDel) {
        this.id = id;
        this.openId = openId;
        this.questionId = questionId;
        this.state = state;
        this.createAt = createAt;
        this.createBy = createBy;
        this.updateAt = updateAt;
        this.updateBy = updateBy;
        this.isDel = isDel;
    }

}
